package com.snail.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.snail.model.dto.TeamMembersDTO;
import com.snail.model.pojo.SysTeamUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Monica
 * @description 针对表【sys_team_user(用户与战队关联表)】的数据库操作Mapper
 * @createDate 2025-07-23 14:30:24
 * @Entity com.snail.model.pojo.SysTeamUser
 */
@Mapper
public interface SysTeamUserMapper extends BaseMapper<SysTeamUser> {

    /**
     * 查询战队成员列表（包含用户信息）
     */
    List<TeamMembersDTO> selectMembersWithUserInfo(@Param("teamId") Long teamId);

    /**
     * 查询审核成员列表（包含用户信息）
     */
    List<TeamMembersDTO> selectReviewMembers(Long teamId);
}




